<template>
	<div class="home">
		<!-- 头部 搜索框  -->
		<header>
			<van-search
				v-model="value"
				shape="round"
				background="#4fc08d"
				width="98%"
				placeholder="请输入搜索关键词"
			/>
			<van-image
				width="25"
				height="25"
				:src="require('../assets/zyw_Home_i/sc.png')"
			/>
		</header>
		<!-- 整体 一个轮播图 -->
		<main>
			<!-- 轮播图 -->
			<div>
				<van-swipe
					class="my-swipe"
					:autoplay="3000"
					height="152"
					indicator-color="white"
				>
					<van-swipe-item>
						<van-image
							width="374"
							height="152"
							:src="require('../assets/zyw_Home_i/banner.jpg')"
						/>
					</van-swipe-item>
					<van-swipe-item>
						<van-image
							width="374"
							height="152"
							:src="require('../assets/zyw_Home_i/fengjing.jpg')"
						/>
					</van-swipe-item>
					<van-swipe-item>
						<van-image
							width="374"
							height="152"
							:src="require('../assets/zyw_Home_i/lunbo3.jpg')"
						/>
					</van-swipe-item>
					<van-swipe-item>
						<van-image
							width="374"
							height="152"
							:src="require('../assets/zyw_Home_i/fengjing.jpg')"
						/>
					</van-swipe-item>
				</van-swipe>
			</div>
			<!-- 滑块 -->
			<div class="two">
				<van-swipe :loop="false" :width="93">
					<van-swipe-item>
						<van-image
							width="50"
							height="50"
							:src="require('../assets/zyw_Home_i/icon_1.jpg')"
						/>
						<p>课程直播</p>
					</van-swipe-item>
					<van-swipe-item
						><van-image
							width="50"
							height="50"
							:src="require('../assets/zyw_Home_i/icon_2.jpg')"
						/>
						<p>课程直播</p>
					</van-swipe-item>
					<van-swipe-item
						><van-image
							width="50"
							height="50"
							:src="require('../assets/zyw_Home_i/icon_3.jpg')"
						/>
						<p>课程直播</p></van-swipe-item
					>
					<van-swipe-item
						><van-image
							width="50"
							height="50"
							:src="require('../assets/zyw_Home_i/icon_4.jpg')"
						/>
						<p>课程直播</p></van-swipe-item
					>
				</van-swipe>
			</div>
			<!-- 更多 -->
			<div class="duo">
				<van-image
					width="25"
					height="25"
					:src="require('../assets/zyw_Home_i/icon.png')"
				/>
				<p>最新推荐</p>
				<van-image
					width="25"
					height="25"
					:src="require('../assets/zyw_Home_i/go.png')"
				/>
			</div>
			<!-- 产品展示 -->
			<div class="codzhanshi">
				<ul>
					<li>
						<van-image
							width="169"
							height="91"
							:src="require('../assets/zyw_Home_i/1.jpg')"
						/>
						<p>UI设计法则-名师直播课</p>
						<div>
							<span>￥3000 </span>
							<p>588人购买</p>
						</div>
					</li>
					<li>
						<van-image
							width="169"
							height="91"
							:src="require('../assets/zyw_Home_i/1.jpg')"
						/>
						<p>UI设计法则-名师直播课</p>
						<div>
							<span>￥3000 </span>
							<p>588人购买</p>
						</div>
					</li>
				</ul>
			</div>
			<!-- 更多 -->
			<div class="duo">
				<van-image
					width="25"
					height="25"
					:src="require('../assets/zyw_Home_i/icon.png')"
				/>
				<p>最新推荐</p>
				<van-image
					width="25"
					height="25"
					:src="require('../assets/zyw_Home_i/go.png')"
				/>
			</div>
			<!-- 产品列表 -->
			<div class="chanpin">
				<van-card
					desc="适合想了解UI的学生"
					title="UI设计法则-名师直播课"
					:thumb="require('../assets/zyw_Home_i/2.jpg')"
				/>
				<van-card
					desc="适合想了解UI的学生"
					title="UI设计法则-名师直播课"
					:thumb="require('../assets/zyw_Home_i/2.jpg')"
				/>
				<van-card
					desc="适合想了解UI的学生"
					title="UI设计法则-名师直播课"
					:thumb="require('../assets/zyw_Home_i/2.jpg')"
				/>
				<van-card
					desc="适合想了解UI的学生"
					title="UI设计法则-名师直播课"
					:thumb="require('../assets/zyw_Home_i/2.jpg')"
				/>
			</div>
		</main>
	</div>
</template>
<script>
export default {
	name: 'Home',
	data() {
		return {
			value: '',
		}
	},
}
</script>
<style lang='scss'>
* {
	margin: 0;
	padding: 0;
	list-style: none;
}
header {
	display: flex;
	background: #1d2558;
	.van-search {
		width: 90%;
		background: #1d2558 !important;
	}
	.van-image {
		margin-top: 15px;
	}
}
.my-swipe .van-swipe-item {
	color: #fff;
	font-size: 20px;
	line-height: 150px;
	text-align: center;
	background-color: #39a9ed;
}
.two {
	.van-swipe-item {
		width: 90px;
		height: 80px;
		margin-top: 20px;
		text-align: center;
		.van-image {
			padding: 0 20px;
			margin: 0 auto;
		}
	}
}
.duo {
	border-top: 2px solid #ccc;
	width: 100%;
	height: 50px;
	display: flex;
	p {
		width: 309px;
		height: 50px;
		line-height: 50px;
		margin-left: 10px;
	}
	.van-image {
		margin-top: 10px;
	}
}
.codzhanshi {
	width: 100%;
	height: 161px;
	ul {
		width: 98%;
		height: 100%;
		display: flex;
		justify-content: space-between;
		margin: 0 auto;
		li {
			p {
				font-size: 14px;
				line-height: 30px;
				font-size: 14px;
			}
			div {
				width: 100%;
				height: 25px;
				margin-top: 5px;
				display: flex;
				justify-content: space-between;
				color: #f34b06;
				height: 24px;
				line-height: 24px;
				font-size: 16px;

				span {
					color: red;
				}
				p {
					margin: 0;
					width: 62px;
					height: 25px;
					font-size: 12px;
					color: #bbb;
					padding-right: 5px;
				}
			}
		}
	}
}
.chanpin {
	margin-bottom: 50px;
	.van-card__desc > van-ellipsis {
		margin-top: 20px;
		color: #bbb;
	}
}
</style>
